﻿using System.Text.RegularExpressions;
using System.Collections.Generic;
using System.Linq;
using HtmlAgilityPack;

namespace WhySoSeries
{
    public abstract class SeriesLinksProvider //IWhySoSeries
    {
        protected string url;

        public SeriesLinksProvider(string url)
        {
            this.url = url;
        }

        public List<string> GetSeriesLinksList() //why so series?
        {
            string content = WebUtilities.GetPageContent(url);
            return GetSeriesLinksListTemplate(content);
        }

        protected abstract List<string> GetSeriesLinksListTemplate(string content);
    }
}
